![]() |
PATH![]() |
![]() ![]() |
pascal OSStatus OpenSession(OTAddress *,
const char* endpointString,
UAMMessagePtr message);
The OpenSession callback routine opens a session at the address specified by OTAddress . The value of the commandCode field in the UAMMessage structure must be kOpenRequest . The session reference number for the opened session is returned in the sessionRefNum the UAMMessage structure.
For sessions over AppleTalk, the size of cmdBuffer is limited to kMaxAFPCommand (576 bytes), cmdBuffer must be afplogin , and the endpointString parameter is ignored.
For synchronous operation, set the completion and contextPtr fields of the UAMMessage structure to nil . For asynchronous operation, set the completion field of the UAMMessage structure to point to your completion routine and set the contextPtr field to a value that identifies this request.